<template>
	<view class="my">
		<view class="userInfo">
			<view class="bgImg imgPublic">
				<image src="../static/images/index_bac.png" mode="widthFix"></image>
			</view>
			<view class="user_container">
				<view :style="{ 'height':headerTop+'px' }"></view>
				<view class="topTool dFlex jEnd_aCenter">
					<view class="toolIcon">
						<u-icon name="email" color="#ffffff" size="28"></u-icon>
						<view class="toastCount dFlex jCenter_aCenter">0</view>
					</view>
					<view class="toolIcon">
						<u-icon name="setting" color="#ffffff" size="28"></u-icon>
					</view>
				</view>
				<view class="userInfo dFlex jStart_aCenter">
					<view class="userTx imgPublic">
						<image src="../static/logo.png" mode="widthFix"></image>
					</view>
					<view class="info dFlex jBetween_aCenter">
						<view class="base">
							<text>13800138000</text>
						</view>
						<view class="sign">签到赚积分</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				headerTop:'',
			};
		},
		onLoad() {
			this.headerTop = uni.getMenuButtonBoundingClientRect().top;
			
		},
	}
</script>

<style lang="scss">
	.userInfo{
		width:100%;
		position: relative;
		.user_container{
			.userInfo{
				width:100%;
				padding: 0px 12px;
				box-sizing: border-box;
				.userTx{
					width: 40px;
					height: 40px;
					border-radius: 50%;
					margin-right: 12px;
					background:white;
				}
			}
			.topTool{
				width:100%;
				padding: 15px 12px 0;
				box-sizing: border-box;
				margin-bottom: 12px;
				.toolIcon{
					position: relative;
					margin-left: 20px;
					.toastCount{
						font-size: 11px;
						width: 18px;
						height: 18px;
						color:#FF4C4C;
						background:white;
						border-radius: 50%;
						position: absolute;
						top:-7.5px;
						right: -7.5px;
					}
				}
			}
			width: 100%;
			height: 100%;
			position: absolute;
			top:0;
			left:0;
		}
	}
</style>
